<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <title>物流仓储网</title>
    <!-- Bootstrap core CSS -->
    <link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/public/css/main.css" rel="stylesheet">
    <link rel="stylesheet" href="/public/css/base.css">
    <link rel="stylesheet" href="/public/css/index.css">
</head>

<body>
    <div>
        <header>
            <div id="logo">
                <a href="/"></a>
            </div>
            <nav class="topnav" id="topnav">
                <a href="/"><span>首页</span><span class="en">Index</span></a>
                <a href="/students"><span>我的信息</span><span class="en">Logictics</span></a>
                <a href="/detail"><span>仓库明细</span><span class="en">Forms</span></a>
                <a href="/store"><span>仓储管理</span><span class="en">Store</span></a>
                <a href=""><span>财务管理</span><span class="en">Finance</span></a>
                <a href=""><span>系统维护</span><span class="en">System</span></a>
                <a href="/about"><span>关于我们</span><span class="en">About</span></a>
            </nav>
        </header>
        <div class="container-fluid">
            <div class="row">
                <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
                    <div class="row placeholders">
                        {{ each fruits }}
                        <div class="col-xs-6 col-sm-3 placeholder">
                            <img src="../public/images/touxiang4.jpg" width="200" height="200" class="img-responsive" alt="Generic placeholder thumbnail">
                            <h4>{{ $value }}</h4>
                        </div>
                        {{ /each }}
                    </div>
                    <h2 class="sub-header">出入仓管理</h2>
                    <a class="btn btn-success" href="/students/new">添加货物</a>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>姓名</th>
                                    <th>性别</th>
                                    <th>年龄</th>
                                    <th>爱好</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {{ each students }}
                                <tr>
                                    <td>{{ $index }}</td>
                                    <td>{{ $value.name }}</td>
                                    {{ if $value.gender ==0 }}
                                    <td>男</td>
                                    {{else}}
                                    <td>女</td>
                                    {{/if}}
                                    <td>{{ $value.age }}</td>
                                    <td>{{ $value.hobbies }}</td>
                                    <td>
                                        <a class="btn btn-info" href="/students/edit?id={{ $value.id }}">修改</a>
                                        <a class="btn btn-danger" href="/students/delete?id={{ $value.id }}">删除</a>
                                    </td>
                                </tr>
                                {{ /each }}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
</body>

</html>